package ink.xiaobaibai.common.delay;

import java.util.Date;

/**
 * @description:
 * @author: 小白白
 * @create: 2021-05-31
 **/

public class DeviceDelayItemAddOrderId extends DeviceDelayItem {

    public DeviceDelayItemAddOrderId(Integer deviceId, Date expiredTime, String orderId) {
        super(deviceId, expiredTime);
        this.orderId = orderId;
    }

    private String orderId;

    public String getOrderId() {
        return this.orderId;
    }

    @Override
    public int hashCode() {
        return this.orderId.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return this.orderId.equals(((DeviceDelayItemAddOrderId) obj).orderId);
    }

}
